/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Server;

import Tag.Tag;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author tambeotb4
 */
public class ServerInputStreamHandle extends Thread {
    private ServerGui gui;
    private Tag tv;
    private BufferedReader in;
    private PrintWriter out;
    public ServerInputStreamHandle(BufferedReader in, PrintWriter out,ServerGui gui){
        this.in=in;
        this.out=out;
        this.gui=gui;
    }
    @Override
    public void run(){
        int c;
        try {
            c = in.read();
            while(c!=-1){
                gui.settex((char)c);
                c=in.read();
            }
        } catch (IOException ex) {
            Logger.getLogger(ServerInputStreamHandle.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
